package com.qys.livesMall.financial.model.dto.app;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NonNull;

import java.math.BigDecimal;

@Data
public class FinancialOnlineContractDTO {

    @Schema(description = "理财产品ID")
    @NotNull(message = "理财产品ID不能为空")
    private Long financialId;

    @Schema(description = "数量")
    private BigDecimal purchaseNum;

    @Schema(description = "单价")
    private BigDecimal unitPrice;

    @Schema(description = "总价")
    @NotNull(message = "{请输入理财产品总价}")
    @Min(message = "理财产品总价不能低于0", value = 0)
    private BigDecimal totalPrice;

    @Schema(description = "合同编码")
    private String code;

    @Schema(description = "模板")
    private String contract;
}
